package com.mysoft.main.main;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication(scanBasePackages = {"com.mysoftbase.base","com.mysoft.main.main","com.mysoft.service.service","com.mysoft.dao.dao"})
@ImportResource(locations = { "classpath:druid-bean.xml" })
@ServletComponentScan(basePackages = {"com.mysoftbase.base","com.mysoft.main.main","com.mysoft.service.service","com.mysoft.dao.dao"})
@EnableEurekaServer
public class MainApplication {

    public static void main(String[] args) {
        SpringApplication.run(MainApplication.class, args);
    }

}
